﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
//Download by http://www.codefans.net
namespace WindowsApplication1
{
	class 构造函数
	{

	}
    #region 用构造函数传递属性
    class ObjectAtrribute
    {
        private string objectName;
        //private string objectType;
        //private DateTime objectCreateTime;
        //private string objectContents;
        //private string objectAttribute;
        public ObjectAtrribute(string objectName)
        {
            this.objectName = objectName;
            //this.objectType = objectType;
        }

        public string name
        {
            get
            {
                return name;
            }
        }
    }
    #endregion



    public partial class rename　 //文件重新命名构造函数
    {

        public rename(string originName, string newName)
        {
            File.Move(originName, newName);
            
        }
    }


    class Person
    {
        private string name;
        private int age;
             

        // Instance constructor.
        public Person(string name, int age)
        {
            this.name = name;
            this.age = age;
        }

        // Get accessor.
        public string Details
        {
            get
            {
                return name + " is " + age.ToString();
            }
        }
    }

 

}
